package com.woniu;

public class Factory1 {
    public Object makePerson(Class type) {
        try {
            return type.newInstance();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }
}
